<?php
include_once("conn.php");
$newcateName = $_POST["newcateName"];
$oldcateCid = $_POST["oldcateCid"];

$query = "update category set cate_name='".$newcateName."' where cid='".$oldcateCid."'";
$result = mysql_query($query);

echo $newcateName;


?>